from django.db import models


class Member(models.Model):
    """购买月数, 价格, 赠送天数, 是否赠送"""
    buy_month = models.IntegerField(verbose_name='购买月数')
    price = models.DecimalField(max_digits=8, decimal_places=2, verbose_name='价格')
    give_day = models.IntegerField(verbose_name='赠送天数')
    is_give = models.BooleanField(default=False, verbose_name='是否赠送')

    class Meta:
        verbose_name_plural = '充值会员表'

    def __str__(self):
        return str(self.buy_month)